﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Flame.Reflection
{/*
    class MethodParsing
    {
        Type getType(string svalue, IIntellisense compiler)
        {
            Type t = getClassType(svalue, compiler);
            if (t != null) return t;
            return getInstanceType(svalue, compiler);
        }

        public List<MethodInfo> GetMethodsInfo(string text, IIntellisense compiler, out string spartialvalue)
        {
            List<MethodInfo> methods = new List<MethodInfo>();
            string svalue;
            getMatchResults(text, out svalue, out spartialvalue);

            if (svalue == "" || spartialvalue == "") return methods;

            Type t = getType(svalue, compiler);
            if (t != null)
            {
                System.Reflection.MethodInfo[] mis = t.GetMethods();
                foreach (System.Reflection.MethodInfo mi in mis)
                {
                    if (mi.Name == spartialvalue) methods.Add(mi);
                }
            }

            return methods;
        }
    }
*/}
